<div class="pageContent">
    <form method="post" action="__URL__/create/" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden" name="pid" value="{$paramter['pid']}" />
        <input type="hidden" name="model" value="{$paramter['model']}" />
		<input type="hidden" name="type" value="{$type}" />
        <div class="pageFormContent" layoutH="68">
            <div class="unit">
                <label>标　　题：</label>
                <input type="text" name="title" value="" class="required" />
            </div>
			<div class="unit">
                <label>封面图：</label>
                <input type="hidden" name="picture" value=""/>
                <input type="file" name="uploadify" id="picture" class="uploadify" />
                <div class="picture oneImage"></div>
            </div>
			<div class="unit">
                <label>链接地址：</label>
                <input type="text" name="link" value="http://" />
            </div>
            <div class="unit">
                <label>排　　序：</label>
                <input type="text" name="sort" value="0" />
            </div>
        </div>
        <div class="formBar">
            <ul>
                     <li>
                        <div class="buttonSave">
                            <div class="buttonSaveContent">
                                <button type="submit">
                            		<i class="iconfont">&#xe644;</i>保存
                                </button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="buttonCancel">
                            <div class="buttonCancelContent">
                                <button type="button" class="close">
                                	<i class="iconfont">&#xe640;</i>取消
                                </button>
                            </div>
                        </div>
                    </li>
            </ul>
        </div>
    </form>
</div>
<!-- public function list( $parameter = array() ) {
		$parameter = $_POST['parameter'];
		$reuslt = array();
		$reuslt['parameter'] = $parameter;
		// 设置查询条件
		$field = "a.*";
		$field .= ",b.title as parent_title";
		
		$sql = "select $field from db_link as a";
		$sql .= " left join db_link_class as b on a.pid = b.id";
		$sql .= " where 1=1";
		$sql .= " and a.pid = {$parameter['pid']} and a.is_delete = 0";
		
		// 读取数据
		$reuslt = $this->getPageSQLList( $this->model, $sql );
		return $reuslt;
	} -->